package sv.gob.mh.dgii.model.validators;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import sv.gob.mh.dgii.dao.rc.RcRucDao;
import sv.gob.mh.dgii.model.custom.constraints.NitExist;

@Configurable
public class NitExistValidator implements ConstraintValidator<NitExist, String> {

    @Autowired
    private RcRucDao rcRucDao;

    @Override
    public void initialize(NitExist constraintAnnotation) {
    }

    @Override
    public boolean isValid(String object, ConstraintValidatorContext constraintContext) {
        return true;
    }
}
